package cn.edu.mapper;

import cn.edu.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Mr.ma
 * @since 2023/1/3 21:01
 **/
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据用户id查询其都拥有的权限
     * @param uid
     * @return
     */
    List<Permission> selectPerByUid(Integer uid);
}
